<?php

namespace common\models\datas;

use Yii;

/**
 * This is the model class for table "{{%customer_upgrade_type}}".
 *
 * @property integer $id
 * @property string $name
 * @property string $description
 * @property integer $status
 * @property integer $cerated_at
 */
class CustomerUpgradeType extends \common\components\bases\BaseModel
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%customer_upgrade_type}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['status', 'cerated_at'], 'integer'],
            [['name'], 'string', 'max' => 100],
            [['description'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('common', '自增id'),
            'name' => Yii::t('common', '类型名称'),
            'description' => Yii::t('common', '描述'),
            'status' => Yii::t('common', '状态 （1 启用 2 禁用）'),
            'cerated_at' => Yii::t('common', '充值时间'),
        ];
    }
}
